package org.dxj.restaurantmanagementsystem.utils;

import java.io.File;
import java.io.IOException;

/**
 * @author Ding
 * @date 2019/11/23 19:54
 */
public class CreateFileName {
    //创建文件
    public boolean create(String filename) throws IOException {
        File file = new File(filename);
        file.createNewFile();
        if (file.exists()) {
            return false;
        }
        if (file.createNewFile()) {
            return true;
        } else {
            return false;
        }
    }
}
